﻿''' <summary>
''' Stole this from a Google result and massive find &amp; replace to convert it to VB.NET syntax
''' </summary>
''' <remarks></remarks>
Public Class VKeys
#Region "SendMessage Constants"

    ''' <summary>
    ''' Gets the key based on the Constant.
    ''' </summary>
    ''' <param name="key">The key.</param>
    ''' <returns></returns>
    Public Shared Function GetKey(ByVal key As String) As Byte
        'Sorry, I can't be arsed to map these, so I'll stick with reflection
        Try
            Return DirectCast(GetType(VKeys).GetField(key).GetValue(Nothing), Byte)

        Catch ex As Exception
            Return 0

        End Try


    End Function

    Public Const VK_0 As Byte = &H30
    Public Const VK_1 As Byte = &H31
    Public Const VK_2 As Byte = &H32
    Public Const VK_3 As Byte = &H33
    Public Const VK_4 As Byte = &H34
    Public Const VK_5 As Byte = &H35
    Public Const VK_6 As Byte = &H36
    Public Const VK_7 As Byte = &H37
    Public Const VK_8 As Byte = &H38
    Public Const VK_9 As Byte = &H39
    Public Const VK_A As Byte = &H41
    Public Const VK_B As Byte = &H42
    Public Const VK_C As Byte = &H43
    Public Const VK_D As Byte = &H44
    Public Const VK_E As Byte = &H45
    Public Const VK_F As Byte = &H46
    Public Const VK_G As Byte = &H47
    Public Const VK_H As Byte = &H48
    Public Const VK_I As Byte = &H49
    Public Const VK_J As Byte = &H4A
    Public Const VK_K As Byte = &H4B
    Public Const VK_L As Byte = &H4C
    Public Const VK_M As Byte = &H4D
    Public Const VK_N As Byte = &H4E
    Public Const VK_O As Byte = &H4F
    Public Const VK_P As Byte = &H50
    Public Const VK_Q As Byte = &H51
    Public Const VK_R As Byte = &H52
    Public Const VK_S As Byte = &H53
    Public Const VK_T As Byte = &H54
    Public Const VK_U As Byte = &H55
    Public Const VK_V As Byte = &H56
    Public Const VK_W As Byte = &H57
    Public Const VK_X As Byte = &H58
    Public Const VK_Y As Byte = &H59
    Public Const VK_Z As Byte = &H5A

    Public Const VK_BACK As Byte = &H8
    Public Const VK_TAB As Byte = &H9
    Public Const VK_CLEAR As Byte = &HC
    Public Const VK_RETURN As Byte = &HD
    Public Const VK_SHIFT As Byte = &H10
    Public Const VK_CONTROL As Byte = &H11
    Public Const VK_MENU As Byte = &H12
    Public Const VK_PAUSE As Byte = &H13
    Public Const VK_CAPITAL As Byte = &H14
    Public Const VK_KANA As Byte = &H15
    Public Const VK_HANGEUL As Byte = &H15
    Public Const VK_HANGUL As Byte = &H15
    Public Const VK_JUNJA As Byte = &H17
    Public Const VK_FINAL As Byte = &H18
    Public Const VK_HANJA As Byte = &H19
    Public Const VK_KANJI As Byte = &H19
    Public Const VK_ESCAPE As Byte = &H1B
    Public Const VK_CONVERT As Byte = &H1C
    Public Const VK_NONCONVERT As Byte = &H1D
    Public Const VK_ACCEPT As Byte = &H1E
    Public Const VK_MODECHANGE As Byte = &H1F
    Public Const VK_SPACE As Byte = &H20
    Public Const VK_PRIOR As Byte = &H21
    Public Const VK_NEXT As Byte = &H22
    Public Const VK_END As Byte = &H23
    Public Const VK_HOME As Byte = &H24
    Public Const VK_LEFT As Byte = &H25
    Public Const VK_UP As Byte = &H26
    Public Const VK_RIGHT As Byte = &H27
    Public Const VK_DOWN As Byte = &H28
    Public Const VK_SELECT As Byte = &H29
    Public Const VK_PRINT As Byte = &H2A
    Public Const VK_EXECUTE As Byte = &H2B
    Public Const VK_SNAPSHOT As Byte = &H2C
    Public Const VK_INSERT As Byte = &H2D
    Public Const VK_DELETE As Byte = &H2E
    Public Const VK_HELP As Byte = &H2F
    Public Const VK_LWIN As Byte = &H5B
    Public Const VK_RWIN As Byte = &H5C
    Public Const VK_APPS As Byte = &H5D
    Public Const VK_SLEEP As Byte = &H5F
    Public Const VK_NUMPAD0 As Byte = &H60
    Public Const VK_NUMPAD1 As Byte = &H61
    Public Const VK_NUMPAD2 As Byte = &H62
    Public Const VK_NUMPAD3 As Byte = &H63
    Public Const VK_NUMPAD4 As Byte = &H64
    Public Const VK_NUMPAD5 As Byte = &H65
    Public Const VK_NUMPAD6 As Byte = &H66
    Public Const VK_NUMPAD7 As Byte = &H67
    Public Const VK_NUMPAD8 As Byte = &H68
    Public Const VK_NUMPAD9 As Byte = &H69
    Public Const VK_MULTIPLY As Byte = &H6A
    Public Const VK_ADD As Byte = &H6B
    Public Const VK_SEPARATOR As Byte = &H6C
    Public Const VK_SUBTRACT As Byte = &H6D
    Public Const VK_DECIMAL As Byte = &H6E
    Public Const VK_DIVIDE As Byte = &H6F
    Public Const VK_F1 As Byte = &H70
    Public Const VK_F2 As Byte = &H71
    Public Const VK_F3 As Byte = &H72
    Public Const VK_F4 As Byte = &H73
    Public Const VK_F5 As Byte = &H74
    Public Const VK_F6 As Byte = &H75
    Public Const VK_F7 As Byte = &H76
    Public Const VK_F8 As Byte = &H77
    Public Const VK_F9 As Byte = &H78
    Public Const VK_F10 As Byte = &H79
    Public Const VK_F11 As Byte = &H7A
    Public Const VK_F12 As Byte = &H7B
    Public Const VK_F13 As Byte = &H7C
    Public Const VK_F14 As Byte = &H7D
    Public Const VK_F15 As Byte = &H7E
    Public Const VK_F16 As Byte = &H7F
    Public Const VK_F17 As Byte = &H80
    Public Const VK_F18 As Byte = &H81
    Public Const VK_F19 As Byte = &H82
    Public Const VK_F20 As Byte = &H83
    Public Const VK_F21 As Byte = &H84
    Public Const VK_F22 As Byte = &H85
    Public Const VK_F23 As Byte = &H86
    Public Const VK_F24 As Byte = &H87
    Public Const VK_NUMLOCK As Byte = &H90
    Public Const VK_SCROLL As Byte = &H91

#End Region
End Class
